<? /*
<table>
                    	<tr>
                            <th class="j1">快递公司</th>
                            <th class="j2">重量(g)</th>
                            <th class="j3">运费</th>
                            <th class="j4">报关费</th>
                            <th class="j5">总计</th>
                        </tr>
                        <?php
                            //计算
                            foreach ($this->fee as $item) {
                                $usePrice=0;
                                $weight=$this->wed;


                                $item->oil= $item->getMoneyByweight($weight);                                       
                            }
                            //排序
                            $this->fee=  Uuch_Util::quickSort($this->fee,"oil");
                            foreach ($this->fee as $item) {
                                    $usePrice=$item->oil;
                                    echo     '<tr>
                                                    <td class="j1">'.$item->shipTypeName.'</td>
                                                    <td class="j2">'.$weight.'</td>
                                                    <td class="j3">￥'.$usePrice.'</td>
                                                    <td class="j4">￥'.$item->clearancePrice.'</td>
                                                    <td class="j5">￥'.($usePrice+$item->clearancePrice).'</td>
                                                </tr>';
                            }
                        ?>
</table>
 * 
 */ ?>
<table>
    <tr>
        <th class="j1">快递公司</th>
        <th class="j2">重量(g)</th>
        <th class="j0">官方运费</th>
        <th class="j3">悠奇运费</th>
        <th class="j4">报关费</th>
        <th class="j5">总计</th>
    </tr>
    <? 
    //计算
    foreach ($this->prices as $item) {
        $item->SortKey= $item->getMoneyByweight($this->Weight);                                       
    }
    $prices = Uuch_Util::quickSort($this->prices, 'SortKey');
    foreach ($prices as $item){ 
        if($item->ExpressId == Application_Model_Express::Express_DHLBrand)
            continue;
        $report = $item->getReportMoney($this->Weight);
        ?>
    <tr>
        <td class="j1"><img src="<?= $item->getExpress()->Logo ?>" alt="<?= $item->getExpress()->Name ?>" title="<?= $item->getExpress()->Name ?>" /></td>
        <td class="j2"><?= $this->Weight ?></td>
        <td class="j0">￥<?= $report ?></td>
        <td class="j3">￥<?= $item->SortKey ?></td>
        <td class="j4"><?= $item->getExpress()->ReportFee?'￥'.$item->getExpress()->ReportFee:'(无)' ?></td>        
        <td class="j5">￥<?= $item->SortKey+$item->getExpress()->ReportFee ?><span>(为您节省￥<?= $report - $item->SortKey ?>)</span></td>
    </tr>
    <? } ?>
</table>